﻿using System.Threading;
using Snowflake;

namespace Solution.Comm.Uuid
{
    public  class GuidHelper
    {
        public  long UUID {
            get {
                lock (this) {
                    long id = new IdWorker(0, 1).NextId();


                    Thread.Sleep(1);
                    return id;
                }


            }
        }
    }
}
